<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>安卓自动兼容测试系统</title>
<script src="/Terminator/js/jquery-3.0.0.min.js">
	
</script>
<script src="/Terminator/js/jquery.json.js">
	
</script>
<script type="text/javascript" src="/Terminator/js/popup.js">
	
</script>
<script type="text/javascript" src="/Terminator/js/interface.js">
	
</script>
<link href="/Terminator/css/Share.css" rel="stylesheet" type="text/css">
<script src="/Terminator/js/angular.min.js"></script>
<script src="/Terminator/js/bootstrap.min.js" type="text/javascript"></script>
<link href="/Terminator/css/bootstrap.min.css" rel="stylesheet" />

<script src="/Terminator/js/angular-animate.min.js">
	
</script>
<script src="/Terminator/js/toaster.min.js">
	
</script>
<script src="/Terminator/js/angular-popups.js">
	
</script>
<link href="/Terminator/css/toaster.min.css" rel="stylesheet" />
</head>
<body ng-app='interfaceApp' ng-controller='interfaceCtrl'>
	<div align="center">
		<toaster-container></toaster-container>
	</div>
	<div id="exhibitor114" style="float: inherit; display: block;">
		<div id="exhibitorleft" style="overflow-y: scroll;">
			<div align="center">
				<div align="center" id="assist" style="width: 100%">
					<ul style="margin-bottom: 10px; padding: 0; width: 50%">
						<li style="text-align: left">支持get、post请求键值对参数自动识别</li>
						<li style="text-align: left">json请求在左边输入"json"，并添加子参数</li>
					</ul>
					<input type="text" align="center" size="30" id="waitUrl"
						maxlength="10000" ng-model='waitUrl' /> <input type="button"
						value="识别" id="distinguish" align="right" ng-click='distinguish()' />
				</div>
				<table align="center" id="params">
					<tr align="center">
						<td align="right"><font id="postText" color="blue">Post请求
						</font><input type="radio" align="right" id="post" name="request"
							checked="checked" /></td>
						<td align="left"><font id="getText">Get请求</font> <input
							type="radio" align="left" name="request" id="get" /></td>
					</tr>
					<tr align="center">
						<td align="right">请输入接口地址：</td>
						<td align="left"><input type="text" align="left" size="30"
							id="interfaceUrl" maxlength="10000" /></td>
					</tr>
					<tr>
						<td align="right">请输入参数:</td>
						<td>左边为参数名，右边是参数值</td>
					</tr>
					<tr id="param1">
						<td align="right"><input type="text" align="right" size="20"
							maxlength="100" id="paramName1" /> :</td>
						<td align="left"><input type="text" align="left" size="20"
							maxlength="100" id="paramValue1" /></td>
					</tr>
				</table>
			</div>
		</div>
		<div id="exhibitorright">
			<textarea
				style="display: block; height: 100%; width: 100%; overflow-x: visible; overflow-y: visible;"
				readonly="readonly" id="textMsg">{{resultMsg}}</textarea>
		</div>
	</div>
	<div id="selectResult"
		style="display: none; height: 100%; width: 100%; overflow-x: visible; overflow-y: visible;">
		<div class="row" style="height: 100%">
			<div class="col-md-12" style="height: 100%">
				<!--面板开始-->
				<div class="panel panel-primary" style="height: 100%">
					<!--面板内容开始-->
					<div class="panel-body" style="height: 100%">
						<!--搜索工具栏开始-->
						<div class="input-group col-md-4 pull-right"
							style="width: 100%; height: 5%">
							<div class="input-group-btn" style="float: left; width: 30%;">
								<button type="button" class="btn btn-info" ng-click='back()'
									style="float: left;">返回</button>
								<input type="text" placeholder="请输入标识关键字" class="form-control"
									ng-model="sign" maxlength="20" size="20" style="float: none;" />
								<button type="button" class="btn btn-info"
									style="margin-left: 2px; margin-bottom: 10px;"
									ng-click='signClick(sign)'>标记</button>
							</div>
							<div style="float: right; width: 40%;">
								<input type="text" placeholder="请输入要搜索的关键字" class="form-control"
									ng-model="id" maxlength="20" size="20" style="width: 70%" />
								<div class="input-group-btn" style="width: 30%; float: right;">
									<!--面板标题/头部-->
									<button type="button" class="btn btn-info"
										ng-click='deleteAll()'>全部删除</button>

									<button type="button" class="btn btn-info"
										style="margin-left: 2px;">搜索</button>
								</div>

							</div>
						</div>
						<!--搜索工具栏结束-->
						<!--绑定表格开始-->
						<div style="width: 100%; height: 95%; overflow: scroll;">
							<table id="tb" border="1" cellspacing="0"
								style="table-layout: fixed; width: 100%"
								class="table table-striped table-bordered table-hover table-responsive">
								<tr>
									<th style="width: 5%">选择</th>
									<th style="display: none;">his_id</th>
									<th style="width: 10%">标识</th>
									<th style="width: 5%">类型</th>
									<th style="width: 30%">请求地址</th>
									<th style="width: 20%">参数</th>
									<th style="width: 5%">查询结果</th>
									<th style="width: 10%">时间</th>
									<th style="width: 10%">操作</th>
									<!--<th>编辑</th>  
                                <th>删除</th>-->
								</tr>
								<!--重复项开始，设置排序字段，数据源，names代表数据源，x表示names中遍历的每一个对象，id表示模糊搜索输入的内容，要与输入的input的ng-model一致，col表示排序名称，要与表头中一致-->
								<tr ng-repeat="x in names | filter: id ">
									<td><input type="checkbox" name="cbx" value="{{x.hisId}}"
										ng-model='selectAll' ng-click="isSelected(x,selectAll)"
										ng-checked="selectAll" /></td>
									<td
										style="overflow: hidden; display: none; white-space: nowrap; text-shadow: gray;">{{x.hisId}}</td>
									<td ng-click="show(x.signText)"
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.signText}}</td>
									<td
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.methodtype}}</td>
									<td ng-click="show(x.url)"
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.url}}</td>
									<td ng-click="show(x.params)"
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.params}}</td>
									<td ng-click="show(x.result)"
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.result}}</td>
									<td ng-click="show(x.time)"
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">{{x.time}}</td>
									<td
										style="overflow: hidden; white-space: nowrap; text-shadow: gray;">
										<button class="btn-mine" ng-click="btnAgain(x)">again</button>
										<button ng-click="deleteStu(x)">删除</button>
									</td>
								</tr>
							</table>
						</div>
						<!--绑定表格结束-->
						<popup ng-show="isShow">
						<div class="mod-popup-example">{{showText}}</div>
						</popup>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div align="center" style="position: fixed; bottom: 0px;"
		id="buttonGroup">
		<input type="button" align="middle" value="添加参数" id="paramAdd"
			style="margin-left: 430px; margin-bottom: 20px;" /> <input
			type="button" align="middle" value="删除参数" id="paramDelete"
			style="margin-left: 5px; margin-bottom: 20px;" /> <input
			type="button" align="middle" value="添加子参数" id="paramAddChild"
			style="margin-left: 5px; margin-bottom: 20px;" class="but_tj" /> <input
			type="button" align="middle" value="提交" id="submit_aa"
			ng-click='submitClick()'
			style="margin-left: 5px; margin-bottom: 20px;" /> <input
			type="button" align="middle" value="历史" id="select_btn"
			ng-click='selectResultClick()'
			style="margin-left: 5px; margin-bottom: 20px;" />
	</div>
	<div class="overlay" id="spm" style="display: none;"></div>
	<!-- 将弹出层下面的页面变成不可操作状态，成半透明状态 -->
	<div class="Popup" style="display: none">
		<!-- 隐藏div -->
		<div class="Popup_top">
			<input type="button" value="关闭" class="ClosePopu" align="middle" />
			<input type="button" value="提交" class="Close childColse"
				align="middle" style="font-weight: 400; font-size: 14px"> <input
				type="button" align="middle" value="删除参数" class="paramDeleteChild" />
			<input type="button" align="middle" value="添加参数"
				class="paramAddChild" />
		</div>
		<div class="Popup_cen">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="BD_tab">
				<tr class="tr1">
					<td style="width: 110px;" align="right"><input name=""
						id="name" type="text" class="paramChildName1"></td>
					<td><input name="" id="name" type="text"
						class="paramChildValue1"> <font color="red">*</font></td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>
